package com.wwtech.epp.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by huzhipeng on 2017/12/9.
 */

public class TaskAttachmentFile implements Parcelable{

    /**
     * fileId : 9
     * fileName : P70609-143248.jpg
     * fileUrl : http://s3.cn-north-1.amazonaws.com.cn/zxltest/20171209/8e4ed4fa7f314ee0bd0651a0b700796c.jpg
     * jobId : 98
     */

    private int fileId;
    private String fileName;
    private String fileUrl;
    private int jobId;

    protected TaskAttachmentFile(Parcel in) {
        fileId = in.readInt();
        fileName = in.readString();
        fileUrl = in.readString();
        jobId = in.readInt();
    }

    public static final Creator<TaskAttachmentFile> CREATOR = new Creator<TaskAttachmentFile>() {
        @Override
        public TaskAttachmentFile createFromParcel(Parcel in) {
            return new TaskAttachmentFile(in);
        }

        @Override
        public TaskAttachmentFile[] newArray(int size) {
            return new TaskAttachmentFile[size];
        }
    };

    public int getFileId() {
        return fileId;
    }

    public void setFileId(int fileId) {
        this.fileId = fileId;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getFileUrl() {
        return fileUrl;
    }

    public void setFileUrl(String fileUrl) {
        this.fileUrl = fileUrl;
    }

    public int getJobId() {
        return jobId;
    }

    public void setJobId(int jobId) {
        this.jobId = jobId;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeInt(fileId);
        parcel.writeString(fileName);
        parcel.writeString(fileUrl);
        parcel.writeInt(jobId);
    }
}
